﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyAspx.EasyFramework.EntityFramework;

namespace MyAspx.EasyFramework.DAL3
{
    public class CommentDAL
    {
        commyaspxdbEntities _myaspxentities = new commyaspxdbEntities();
        public int AddNewCodeCommentInfo(my_comment _myComment)
        {
            _myaspxentities.my_comment.Add(new my_comment()
            {
                pid=_myComment.pid,
                codefileid = _myComment.codefileid,
                commentcontent = _myComment.commentcontent,
                commenttime = _myComment.commenttime,
                guest = _myComment.guest,
                userid = _myComment.userid

            });
            return _myaspxentities.SaveChanges();
        }
    }
}
